package com.spvs.job.mapper;

import com.spvs.job.domain.EquipUpkeepPlanRecord;

import java.util.List;

/**
 * 保养计划Mapper接口
 *
 * @author supervision
 * @date 2024-06-09
 */
public interface EquipUpkeepPlanRecordMapper
{
    /**
     * 查询保养计划
     *
     * @param id 保养计划主键
     * @return 保养计划
     */
    public EquipUpkeepPlanRecord selectEquipUpkeepPlanRecordById(Long id);

    /**
     * 查询保养计划列表
     *
     * @param equipUpkeepPlanRecord 保养计划
     * @return 保养计划集合
     */
    public List<EquipUpkeepPlanRecord> selectEquipUpkeepPlanRecordList(EquipUpkeepPlanRecord equipUpkeepPlanRecord);

    /**
     * 新增保养计划
     *
     * @param equipUpkeepPlanRecord 保养计划
     * @return 结果
     */
    public int insertEquipUpkeepPlanRecord(EquipUpkeepPlanRecord equipUpkeepPlanRecord);

    /**
     * 修改保养计划
     *
     * @param equipUpkeepPlanRecord 保养计划
     * @return 结果
     */
    public int updateEquipUpkeepPlanRecord(EquipUpkeepPlanRecord equipUpkeepPlanRecord);

    /**
     * 删除保养计划
     *
     * @param id 保养计划主键
     * @return 结果
     */
    public int deleteEquipUpkeepPlanRecordById(Long id);

    /**
     * 批量删除保养计划
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipUpkeepPlanRecordByIds(Long[] ids);

    List<EquipUpkeepPlanRecord> selectAll(Integer code);
}
